import createjs from "createjs-ts";
import cjs=createjs
/**
 * 层控制器
 */
export default class LayerController {
    //private _stage:cjs.Stage;
    private _bg_layer:cjs.Container = new cjs.Container();
    /**
     * 背景层
     */
    get bg_layer(){
        return this._bg_layer;
    }
    private _game_layer:cjs.Container = new cjs.Container();
    /**
     * 游戏层
     */
    get game_layer(){
        return this._game_layer;
    }
    private _ui_layer:cjs.Container = new cjs.Container();
    /**
     * UI层
     */
    get ui_layer(){
        return this._ui_layer;
    }
    private _top_layer:cjs.Container = new cjs.Container();
    /**
     * 最上层
     */
    get top_layer(){
        return this._top_layer;
    }
    init(root:cjs.Container):void{
        this._bg_layer.name="背景层";
        root.addChild(this._bg_layer);
        this._game_layer.name="游戏层";
        root.addChild(this._game_layer);
        this._ui_layer.name="UI层";
        root.addChild(this._ui_layer);
        this._top_layer.name="顶层";
        root.addChild(this._top_layer);
    }
}